<?php /*a:2:{s:73:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\operation\point_signin.html";i:1567062757;s:64:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\header.html";i:1571626691;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>DSShop单店铺商城系统后台</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
        <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
        <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>

        <script type="text/javascript">
            var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
            var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
            var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
            var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
            var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
        </script>
    </head>
    <body>
        <div id="append_parent"></div>
        <div id="ajaxwaitid"></div>








<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>签到设置</h3>
                <h5></h5>
            </div>
        </div>
    </div>

    <form method="post" name="settingForm" id="settingForm">
        <table class="ds-default-table">
            <tbody>
            <tr class="hover">
                <td><?php echo htmlentities(lang('points_signin_isuse')); ?>:</td>
                <td class="vatop rowform onoff">
                    <label for="points_signin_isuse_1" class="cb-enable <?php if($list_setting['points_signin_isuse'] == '1'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_open')); ?>"><span><?php echo htmlentities(lang('ds_open')); ?></span></label>
                    <label for="points_signin_isuse_0" class="cb-disable <?php if($list_setting['points_signin_isuse'] == '0'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_close')); ?>"><span><?php echo htmlentities(lang('ds_close')); ?></span></label>
                    <input id="points_signin_isuse_1" name="points_signin_isuse" <?php if($list_setting['points_signin_isuse']== '1'): ?> checked=checked <?php endif; ?> value="1" type="radio">
                    <input id="points_signin_isuse_0" name="points_signin_isuse" <?php if($list_setting['points_signin_isuse']== '0'): ?> checked=checked <?php endif; ?>} value="0" type="radio">
                </td>
                <td class="vatop tips"><?php echo htmlentities(lang('points_signin_isuse_notice')); ?></td>
            </tr>
            <tr class="hover">
                <td>签到积分</td>
                <td><input id="points_signin" name="points_signin" value="<?php echo htmlentities($list_setting['points_signin']); ?>" class="txt" type="text" style="width:60px;"></td>
                <td class="vatop tips"></td>
            </tr>
            <tr class="hover">
                <td>连续签到周期</td>
                <td><input id="points_signin" name="points_signin_cycle" value="<?php echo htmlentities($list_setting['points_signin_cycle']); ?>" class="txt" type="text" style="width:60px;"></td>
                <td class="vatop tips"></td>
            </tr>
            <tr class="hover">
                <td>连续签到奖励</td>
                <td><input id="points_signin" name="points_signin_reward" value="<?php echo htmlentities($list_setting['points_signin_reward']); ?>" class="txt" type="text" style="width:60px;"></td>
                <td class="vatop tips"></td>
            </tr>
            
            </tbody>
        </table>

        
        <table class="ds-default-table">
            <tfoot>
            <tr class="tfoot">
                <td colspan="2"><input class="btn" type="submit" value="<?php echo htmlentities(lang('ds_submit')); ?>"/></td>
            </tr>
            </tfoot>
        </table>
    </form>
</div>

<script>
    $(document).ready(function(){
        $("#settingForm").validate({
            errorPlacement: function(error, element){
                error.appendTo(element.parent().parent().find('td:last'));
            },
            rules : {
                points_signin :{
                    number:true,
                    min:0
                },
                points_signin_cycle :{
                    number:true,
                    min:0
                },
                points_signin_reward :{
                    number:true,
                    min:0
                },
            },
            messages : {
                points_signin :{
                    number:'请输入数字',
                    min:'输入值不能小于0'
                },
                points_signin_cycle :{
                    number:'请输入数字',
                    min:'输入值不能小于0'
                },
                points_signin_reward :{
                    number:'请输入数字',
                    min:'输入值不能小于0'
                },
            }
        });
    });
</script>